package com.example.wiki.entity.req;

import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.Data;


@Data
public class EbookSaveReq {

    private Long id;

    @NotNull(message = "【名称】不能为空")//不为null
    @NotEmpty(message = "【名称】不能为空")//不为空字符串
    private String name;

    private Long category1Id;

    private Long category2Id;

    private String description;

    private String cover;

    private Integer docCount;

    private Integer viewCount;

    private Integer voteCount;

    private static final long serialVersionUID = 1L;
}
